package com.sporadic.backstage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "`order`")
public class Order {

    //订单编号
    private String orderId;
    //用户Id
    private Integer orderUserId;
    //订单优惠金额
    private BigDecimal orderTotal;
    //订单所属桌号
    private Integer orderDesk;
    //订单备注
    private String orderRemark;
    //订单状态
    private Integer orderStatus;
    //订单所属商家
    private Integer orderMerchantId;
    //订单创建时间
    private Date orderCreateTime;
    //订单结束时间
    private Date orderEndTime;
    //订单支付时间
    private Date orderPayTime;
    //订单支付方式
    private Integer orderPayWay;
    //订单支付状态
    private Integer orderPayStatus;
    //订单更新时间
    private Date orderUpdateTime;
    //订单原金额
    private BigDecimal orderPrice;
    //订单实付金额
    private BigDecimal orderActualAmount;
    //订单所含人数
    private BigDecimal orderPeopleNumber;

    //用户类
    private User user;

}
